package com.study.cloud.simpleeurekaserver;

import com.study.cloud.simpleeurekaserver.filter.PreFilterZuul;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@EnableZuulProxy
public class ZuulFilterApplication {

	public static void main(String[] args) {
		SpringApplication.run(ZuulFilterApplication.class, args);
		System.out.println("zuul Filter已启动》》》");
	}

	@Bean
	public PreFilterZuul preFilterZuul() {
		return new PreFilterZuul();
	}
}
